import request from "@/utils/request";

/**
 * 注册个人会员
 */
export const registerIndividual = (data) =>
  request({
    url: "/finance/member/register_individual_member",
    method: "post",
    data,
  });

/**
 * 注册企业会员
 */
export const registerOrganization = (data) =>
  request({
    url: "/finance/member/register_enterprise_member",
    method: "post",
    data,
  });

/**
 * 注册个体工商户
 */
export const registerIndividualBusiness = (data) =>
  request({
    url: "/finance/member/register_sole_proprietorship_member",
    method: "post",
    data,
  });
/**
 * 根据会员身份证or企业代码查询会员信息
 */
export const getMemberInfoDetails = (data) =>
  request({
    url: "/finance/member/member_info",
    method: "post",
    data,
});

/**
 * 账户详情
 */
export const getMemberDetail = (data) =>
  request({
    url: "/finance/wallet/wallet_detail",
    method: "post",
    data,
});

export const getMemberDetails = (data) =>
  request({
    url: "/finance/wallet/wallet_detail",
    method: "post",
    data,
  });